home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- //
- // Creation Date: July 10, 1997
- // Author: ajp
- //
- // Procedure Name:
- // AEnewMulti
- //
- // Description Name;
- // Creates a channel box for a mulit attribute in the AE
- //
- // Input Value:
- // nodeName, attribute, attribute's UI name, changedCommand
- //
- // Return Value
- // This method returns an array of strings. The 0th element
- // in the array is the OUTERMOST layout created here. This will
- // be used later to delete these controls. The 1st element is
- // the selectionConnection used to attach the channel box to a
- // particular node.
- //
- //
-
- global proc string[] AEnewMulti( string $nodeName,
- string $attribute,
- string $attrUIName,
- string $changedCommand )
- {
- global int $gTextColumnWidthIndex;
- global int $gChannelBoxWidgetWidthIndex;
- global int $gChannelBoxWidgetHeightIndex;
-
- setUITemplate -pushTemplate attributeEditorTemplate;
- $baseLayout = `frameLayout -l $attrUIName`; //outermost layout must be returned later
- $createdLayout = `columnLayout -adj true -vis false`;
- $createdConnection = `selectionConnection
- -p $createdLayout
- -obj $nodeName`;
- $createdChannelBox = `channelBox
- -mw $gChannelBoxWidgetWidthIndex
- -lw $gTextColumnWidthIndex
- -mh $gChannelBoxWidgetHeightIndex
- -mlc $createdConnection
- -p $createdLayout
- -fal {$attribute}
- -aem true`;
- setParent ..;
- columnLayout -e -vis true $createdLayout;
- setParent ..;
-
- setUITemplate -popTemplate;
-
- if ($changedCommand != "") {
- string $cmd = $changedCommand + " \"" + $nodeName + "\"";
- scriptJob
- -p $createdLayout -rp
- -ac ($nodeName + "." + $attribute) $cmd;
- }
-
- string $retval[2];
- $retval[0] = $baseLayout;
- $retval[1] = $createdConnection;
-
- return $retval;
- }
-